import axios from '@/utils/request'

/**
 * 获取工资支付
 */
export function wagePayGet(params) {
    return axios({
      url:"/v1/wagePay/get",
      method:"get",
      params  
    })
}

/**
 * 查询工资支付
 */
export function wagePayQuery(data) {
    return axios({
      url:"/v1/wagePay/query",
      method:"post",
      data  
    })
}

/**
 * 删除工资支付
 */
export function wagePayDelete(data) {
    return axios({
      url:"/v1/wageSheet/delete",
      method:"post",
      data  
    })
}

/**
 * 编辑工资支付
 */
export function wagePayEdit(data) {
    return axios({
      url:"/v1/wageSheet/update",
      method:"post",
      data  
    })
}

/**
 * 上报工资单确定
 */
export function wagePayCheck(data) {
    return axios({
      url:"/v1/teamWageSheet/add",
      method:"post",
      data  
    })
}


/**
 * 关闭/打开班组清单
 */
export function wagePayUpdate(data) {
    return axios({
      url:"/v1/wagePay/update",
      method:"post",
      data  
    })
}

/**
 * 获取施工队工资单
 */
export function teamWageSheetQuery(params) {
    return axios({
      url:"/v1/teamWageSheet/get",
      method:"get",
      params
    })
  }
  
/**
 * 根据录入方式查询班组人员工资信息
 */
export function personWageQueryBySource(data) {
    return axios({
      url:"/v1/personWage/queryBySource",
      method:"post",
      data
    })
  }
 
  /**
 * 撤回工资单
 */
export function withdrawApi(data) {
  return axios({
    url:"/v1/reportTeamWageSheet/withdraw",
    method:"post",
    data
  })
}

 
  /**
 * 关闭工资单
 */
export function wagePayClose(data) {
  return axios({
    url:"/v1/wagePay/update",
    method:"post",
    data
  })
}